<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@include file="/WEB-INF/jsp/taglib.jsp" %>
<html>
<head>
    <c:import url="/WEB-INF/jsp/frontend/head.jsp"/>
    <title>
        <c:if test="${resetResult==true}">重置密码成功</c:if>
        <c:if test="${resetResult==false}">重置密码失败</c:if>
    </title>
</head>
<body style="background: #004a86">
<%--<c:import url="/WEB-INF/jsp/frontend/header.jsp"/>--%>
<div class="conatiner" style="width: 100%; height: 100%;">
    <div style="width: 100%;font-size: 28px;text-align: center;position: absolute;top:37%; color:#fff">
<c:if test="${resetResult==true}">重置密码成功</c:if>
        <c:if test="${resetResult==false}">重置密码失败</c:if></div>
<br>
<div id="info" style="position: absolute;width: 100%;font-size: 16px;color: white;top: 45%; text-align: center;"></div>

<c:import url="/WEB-INF/jsp/frontend/footer.jsp"/>
<c:import url="/WEB-INF/jsp/frontend/script.jsp"/>
</div>
<script type="text/javascript" src="<spring:url value="/js/canvas-particle.js"/>"></script>
<script>
    var t = 5;

    setInterval("refer()", 1000);
    function refer() {
        if (t == 0) {
            window.location.href = "<spring:url value="/loginPage" />";
        }
        $("#info").html(t + "秒后跳转到登录页");
        t--;
    }

    window.onload = function() {
        //配置
        var config1 = {
            vx: 4,  //小球x轴速度,正为右，负为左
            vy: 4,  //小球y轴速度
            height: 2,  //小球高宽，其实为正方形，所以不宜太大
            width: 2,
            count: 80,      //点个数
            color: "255,255,255",  //点颜色
            stroke: "188,187,187",      //线条颜色
            dist: 6000,    //点吸附距离
            e_dist: 20000,   //鼠标吸附加速距离
            border_radius: 20,
            max_conn: 1   //点到点最大连接数
        };
        var body1 = document.getElementById("container");
        CanvasParticle(config1,body1);

    }
</script>
</body>

</html>
